package com.wash.shoes.controller.pc;

import com.ruoyi.common.core.domain.R;
import com.wash.shoes.service.OrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lijianguo
 * @Date 28/09/2024
 * 订单的统计
 **/
@Log4j2
@Api(tags = {"PC-订单的统计"})
@RestController
@RequestMapping({"/dev-api/orderStatis", "/orderStatis"})
public class OrderStatisticsController {

    @Autowired
    OrderService orderService;

    @ApiOperation("今日入库的数量")
    @PostMapping("/todayCheckInNum")
    public R<Integer> todayCheckInNum() {
        Integer num = orderService.todayCheckInNum();
        return R.ok(num);
    }


}
